import { 
    createStore , 
    combineReducers , 
    applyMiddleware,
    compose
} from "redux";
import {
    routerReducer
} from 'react-router-redux';

import thunkMiddleware from 'redux-thunk';
//thunkMiddleware处理异步数据
import reducers from "./reducer/reducer";

let finalCreateStore = compose( applyMiddleware.apply( this , [ thunkMiddleware ]) )( createStore );
let store = finalCreateStore(reducers);
export default store ;

